from datetime import datetime
from typing import Optional
from pydantic import BaseModel, ConfigDict


class BaseSchema(BaseModel):
    model_config = ConfigDict(
        strict=True,
        from_attributes=True
    )
    
class BaseSchema2(BaseModel):

    create_time: Optional[datetime]
    update_time: Optional[datetime]

    model_config = ConfigDict(
        strict=True,
        from_attributes=True
    )
